const name = "coverStatus";

export default () => {
  const setCoverStatus = (storage: string) => {
    sessionStorage.setItem(name, storage);
  };

  const getCoverStatus = () => {
    return sessionStorage.getItem(name) || "close";
  };
  return {
    setCoverStatus,
    getCoverStatus,
  };
};
